package com.vogtec.fota.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by wei on 2017/7/17.
 */
@FeignClient(name = "picture")
@RequestMapping(value = "/picture/v1.0")
public interface UpgradeClient {

    @RequestMapping(value = "/upload/token", method = RequestMethod.GET ,
            produces = "text/plain; charset=utf-8")
    String getToken(@RequestParam("moduleName") String moduleName, @RequestParam("callbackUrl") String callbackUrl);
}
